package com.saxon.service.Blog;

import com.github.pagehelper.PageInfo;
import com.saxon.pojo.Blog;

import java.util.List;
import java.util.Map;

public interface BlogService {
    //查询
    List<Blog> QueryBlog(Map<String,Object> map);
    //查询最新的八篇文章
    List<Blog> QueryBlogNew();
    //分页查询
    PageInfo<Blog> getAllTypeByPage (int pageNum, int pageSize, Map<String, Object> map);
    //查询博客的总数
    int QueryBlogNum(Map<String,Object> map);
    //连表查询博客
    List<Blog> queryBlogWithType(Map<String,Object> map);
}
